package org.ehe.erp.service.batch;

import com.baomidou.mybatisplus.extension.service.IService;
import org.ehe.common.mybatis.core.page.PageQuery;
import org.ehe.common.mybatis.core.page.TableDataInfo;
import org.ehe.erp.domain.batch.ErpBatchInfo;
import org.ehe.erp.domain.batch.bo.ErpBatchBo;
import org.ehe.erp.domain.batch.vo.ErpBatchVo;

import java.util.List;

/**
 * @author :zhangnn
 * @className :ErpBatchInfoService
 * @description: TODO
 * @date 2025-08-18 10:59:12
 */
public interface ErpBatchInfoService extends IService<ErpBatchInfo> {
    /**
     * 分页
     * @param bo
     * @param pageQuery
     * @return
     */
    TableDataInfo<ErpBatchVo> queryPageList(ErpBatchBo bo, PageQuery pageQuery);

    /**
     * 详情
     * @param id
     * @return
     */
    ErpBatchVo queryById(Long id);

    boolean insertByBo(ErpBatchBo bo);

    /**
     *
     * @param typeName
     * @return
     */
    long selectByName(String typeName);

    /**
     * 删除
     * @param ids
     * @param b
     * @return
     */
    boolean deleteWithValidByIds(List<Long> ids, boolean b);

    boolean updateByBo(ErpBatchBo bo);
}
